﻿//## LEAGAL
/*
#region - Legal -

Copyright © 2011, Tateeda Media Network
All rights reserved. http://tateeda.com

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

- Neither the name of the Tateeda Media Network, nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior written
permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

#endregion - Legal -

*/
//#end

$(document).ready(function () {
    /*  //Only if we want to add accordion support inside
    $("#accordionCTSTitle").accordion();
    $("#accordionCTSFDA").accordion();
    */

    $("#tabs").tabs();
    RegisterHelpers();
});

function RegisterHelpers() {
    RegisterCTSTitleHelper();
    RegisterCTSFDAHelper();
    RegisterCTSSponsorHelper();
    RegisterCTSOversightHelper();
    RegisterCTSSummaryHelper();
    RegisterCTSStatusHelper();
    RegisterCTSInterventionalDesignHelper();
    RegisterCTSObservationalStudyHelper();
    RegisterCTSOutcomeHelp();
    RegisterCTSConditionHelp();
    RegisterCTSInterventionHelp();
    RegisterCTSEligibilityHelp();
    RegisterCTSLocationContactHelp();
    RegisterCTSInvestigatorHelp();
    RegisterCTSReferencesHelp();
}

$(function () {
    $('.ctsdate-picker').datepicker({
        closeText: 'X',
        changeMonth: true,
        changeYear: true,
        showButtonPanel: true,
        dateFormat: 'MM yy',
        showOn: 'focus',
        onClose: function (dateText, inst) {
            var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
            var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
            $(this).datepicker('setDate', new Date(year, month, 1));
            $(this).attr('disabled', 'true');
        }
    });

    $(".numericOnly").keydown(function (event) {
        // Allow only backspace and delete
        if (event.keyCode == 46 || event.keyCode == 8) {
            // let it happen, don't do anything
        } else {
            // Ensure that it is a number and stop the keypress
            if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode < 96 || event.keyCode > 105)) {
                event.preventDefault();
            }
        }
    });
});

function checkStatus(val) {
    switch (val) {
        case "Suspended":
        case "Terminated":
        case "Withdrawn":
            $("#whyStoped").show();
            break;
        default:
            $("#whyStoped").hide();
    }
}

function RegisterCTSTitleHelper() {
    $("#StudyCollection_ClinicalSudy_IdInfo_OrgStudyId").focus(function () {
        $("#helpTitle").html("<b>Organization's Unique Protocol ID</b> * FDAAA<br/><u>Definition:</u><br/> Unique identification assigned to the protocol by the sponsoring organization, usually an accession number or a variation of a grant number. Multiple studies conducted under the same grant must each have a unique number.<br/>(Limit: 30 characters)<br />Examples:<br/>ABT-1233-RV<br/>Merck-023<br/>ACTG 021");
    });
    $("#StudyCollection_ClinicalSudy_BiefTitle").focus(function () {
        $("#helpTitle").html("<b>Brief Title</b> * FDAAA<br/><u>Definition:</u><br/> Protocol title intended for the lay public. (Limit: 300 characters) <br />Example: Safety Study of Recombinant Vaccinia Virus Vaccine to Treat Prostate Cancer");
    });
    $("#StudyCollection_ClinicalSudy_Acronym").focus(function () {
        $("#helpTitle").html("<b>Acronym</b><br/><u>Definition:</u><br/> Acronym or initials used to identify this study, if applicable. Enter only the acronym. If supplied, the acronym is automatically displayed in parentheses following the brief title. (Limit: 14 characters) <br />Example: <br/>Brief Title: Women's Health Initiative <br/>Acronym: WHI <br/>Displayed on ClinicalTrials.gov as: Women's Health Initiative (WHI)");
    });
    $("#StudyCollection_ClinicalSudy_OfficialTitle").focus(function () {
        $("#helpTitle").html("<b>Official Title </b><br/><u>Definition:</u><br/> Official name of the protocol provided by the study principal investigator or sponsor.<br />Example: Phase 1 Study of Recombinant Vaccinia Virus That Expresses Prostate Specific Antigen in Metastatic Adenocarcinoma of the Prostate (Limit: 600 characters)");
    });
    $("#StudyCollection_ClinicalSudy_StudyDesign_StudyType").focus(function () {
        $("#helpTitle").html("<b>Study Type</b> * FDAAA <br/><u>Definition:</u><br/> Nature of the investigation. Select one. <br/><ul><u>Interventional:</u> studies in human beings in which individuals are assigned by an investigator based on a protocol to receive specific interventions. Subjects may receive diagnostic, therapeutic or other types of interventions. The assignment of the intervention may or may not be random. The individuals are then followed and biomedical and/or health outcomes are assessed.</ul><ul><u>Observational:</u> studies in human beings in which biomedical and/or health outcomes are assessed in pre-defined groups of individuals. Subjects in the study may receive diagnostic, therapeutic, or other interventions, but the investigator does not assign specific interventions to the subjects of the study.</ul><ul><u>Expanded Access:</u> records describing the procedure for obtaining an experimental drug or device for patients who are not adequately treated by existing therapy, who do not meet the eligibility criteria for enrollment, or who are otherwise unable to participate in a controlled clinical study. Expanded Access records are used to register all types of non-protocol access to experimental treatments, including protocol exception, single-patient IND, treatment IND, compassionate use, emergency use, continued access and parallel track.</ul>");
    });
    $("#StudyCollection_ClinicalSudy_IsFdaRegulated").focus(function () {
        $("#helpTitle").html("<b>FDA Regulated Intervention?</b> (FDAAA) <br/><u>Definition:</u><br/> Indicate whether this trial includes an intervention subject to US Food and Drug Administration regulation under section 351 of the Public Health Service Act or any of the following sections of the Federal Food, Drug and Cosmetic Act: 505, 510(k), 515, 520(m), and 522. Select Yes/No.");
    });
    $("#StudyCollection_ClinicalSudy_IsIndStudy").focus(function () {
        $("#helpTitle").html("<b>IND/IDE Protocol?</b> * (FDAAA) <br/><u>Definition:</u><br/> Indicate if the protocol involves an Investigational New Drug Application (IND) or Investigational Device Exemption (IDE) under US Food and Drug Administration regulations <i>(Will not be made public - for administrative purposes only.)</i>");
    });
    $("#StudyCollection_ClinicalSudy_IdInfo_SecondaryId_Id").focus(function () {
        $("#helpTitle").html("<b>Secondary IDs</b> FDAAA <br/><u>Definition:</u><br/> Other identification numbers assigned to the protocol, including unique identifiers from other registries and NIH grant numbers, if applicable. (Limit: 30 characters)");
    });
    $("#StudyCollection_ClinicalSudy_IdInfo_SecondaryId_IdType").focus(function () {
        $("#helpTitle").html("<b>ID Type</b> Select one. Provide additional information, depending upon selected ID Type, as noted below. (Limit: 119 characters) <ul>US NIH Grant/Contract Award Number - in the Secondary ID field, include activity code, institute code and 6-digit serial number. Other components of the full award number (type code, support year and suffix, if applicable) are optional.<ul>Examples: R01DA013131, UO1HL066582, 5R01HL123451-01A2</ul></ul><ul>Other Grant/Funding Number - also provide name of grantor.</ul><ul>Registry Identifier - also provide name of clinical trials registry.</ul><ul>EudraCT Number - from European Union Drug Regulatory Authorities Clinical Trial System.</ul><ul>Other Identifier - also provide brief description (i.e., what organization issued the ID).</ul>");
    });
}

function RegisterCTSFDAHelper() {
    $("#StudyCollection_ClinicalSudy_IsSection801").focus(function () {
        $("#helpFDA").html("<b>Section 801 Clinical Trial?</b> (FDAAA) <br/><u>Definition:</u><br/> If this trial includes an FDA regulated intervention, indicate whether this is an \"applicable clinical trial\" as defined in US Public Law 110-85, Title VIII, Section 801. Briefly, applicable drug trials include controlled clinical investigations, other than Phase I investigations, of a drug or biologic subject to US FDA regulation. Applicable device clinical trials are controlled trials with health outcomes of devices subject to FDA regulation, other than small feasibility studies, and pediatric postmarket surveillance. Select Yes/No.");
    });
    $("#StudyCollection_ClinicalSudy_IsDelayedPosting").focus(function () {
        $("#helpFDA").html("<b>Delayed Posting?</b> (FDAAA) <br/><u>Definition:</u> <br/>If this is a Section 801 applicable clinical trial, indicate whether this trial includes a device NOT previously approved or cleared by the US FDA for any use, as specified in US Public Law 110-85, Title VIII, Section 801. Select Yes/No. If \"Yes\" is selected, full posting of the trial information on ClinicalTrials.gov will be delayed until after the device has been approved or cleared. <b>At that time, it is the registrant's responsibility to change this selection to \"No\" and release the record for full publication.</b>");
    });

    $("#StudyCollection_ClinicalSudy_IndInfo_IndGrantor").focus(function () {
        $("#helpFDA").html("<b>IND/IDE Grantor</b> * (FDAAA) <br/><u>Definition:</u><br/> FDA center to which the IND or IDE was submitted, i.e., Center for Drug Evaluation and Research (CDER) or Center for Biologics Evaluation and Research (CBER) for INDs; Center for Devices and Radiological Health (CDRH) for IDEs. Select one.<i>(Will not be made public - for administrative purposes only.)</i>");
    });
    $("#StudyCollection_ClinicalSudy_IndInfo_IndNumber").focus(function () {
        $("#helpFDA").html("<b>IND/IDE Number</b> * (FDAAA) <br/><u>Definition:</u><br/> Number assigned to an Investigational New Drug Application (IND) or Investigational Device Exemption (IDE). <i>(Will not be made public - for administrative purposes only.)</i><br />Examples: 22,333; BB1234");
    });
    $("#StudyCollection_ClinicalSudy_IndInfo_IndSerialNumber").focus(function () {
        $("#helpFDA").html("<b>IND/IDE Serial Number</b> (FDAAA) <br/><u>Definition:</u><br/> Use the serial number from the first submission of the protocol to the IND or IDE. <i>(Will not be made public - for administrative purposes only.)</i>");
    });
    $("#StudyCollection_ClinicalSudy_IndInfo_HasExpandedAccess").focus(function () {
        $("#helpFDA").html("<b>Has Expanded Access?</b> FDAAA <br/><u>Definition:</u> <br/> Indicate whether any non-protocol access is to be provided for the investigational drug or device. If so, an Expanded Access record should also be created for this IND/IDE.");
    });
    $("#StudyCollection_ClinicalSudy_IndInfo_ExpandedAccessNctId").focus(function () {
        $("#helpFDA").html("<b>Expanded Access Record</b> FDAAA <br/><u>Definition:</u><br/> The ClinicalTrials.gov identifier (NCT number) for the Expanded Access record associated with this study, specified if and only if \"Yes\" is specified for Has Expanded Access.");
    });
}

function RegisterCTSSponsorHelper() {
    $("#StudyCollection_ClinicalSudy_Sponsor_LeadSponsor_Agency").focus(function () {
        $("#helpSponsor").html("<b>Sponsor</b> * FDAAA <br/><u>Definition:</u><br/> Name of primary organization that oversees implementation of study and is responsible for data analysis. For applicable clinical trials, sponsor is defined in 21 CFR 50.3. (Limit: 160 characters) <br />Examples: National Institute of Allergy and Infectious Diseases, Bristol-Myers Squibb");
    });
    $("#StudyCollection_ClinicalSudy_Sponsor_Collaborator_Agency").focus(function () {
        $("#helpSponsor").html("<b>Collaborators</b> * FDAAA <br/><u>Definition:</u><br/>Other organizations (if any) providing support, including funding, design, implementation, data analysis and reporting. The data provider is responsible for confirming all collaborators before listing them. Provide up to 10 full names of collaborating organizations. (Limit: 160 characters per name) ");
    });
    $("#StudyCollection_ClinicalSudy_Sponsor_RespParty_NameTitle").focus(function () {
        $("#helpSponsor").html("<b>Responsible Party</b> FDAAA<br/><u>Definition:</u><br/> As defined in US Public Law 110-85, Title VIII, Section 801, the term \"responsible party,\" with respect to a clinical trial, means<ol><li>the sponsor of the clinical trial (as defined in 21 CFR 50.3) or</li><li>the principal investigator of such clinical trial if so designated by a sponsor, grantee, contractor, or awardee, so long as the principal investigator is responsible for conducting the trial, has access to and control over the data from the clinical trial, has the right to publish the results of the trial, and has the ability to meet all of the requirements for the submission of clinical trial information.</li> </ol><br/>Select one: <ul><li>Sponsor: the entity (e.g., corporation or agency) that initiates the study </li><li>Principal Investigator: the individual who serves as the principal investigator and is designated as responsible party, consistent with the conditions described in the statute </li><li>Sponsor-Investigator: the individual who both initiates and conducts the study</li></ul>");
    });
}

function RegisterCTSOversightHelper() {
    $("#StudyCollection_ClinicalSudy_OversightInfo_IrbInfo_ApprovalStatus").focus(function () {
        $("#helpOversight").html("<b>Board Approval Status</b> * <br/><u>Definition:</u><br/> Human subjects review board approval status. Select one.<br/><ul><li>Request not yet submitted: review board approval is required but has not yet been requested</li><li>Submitted, pending: review board approval has been requested but not yet granted</li><li>Submitted, approved: review board approval has been requested and obtained</li><li>Submitted, exempt: review board has granted an exemption in response to the approval request</li><li>Submitted, denied: review board has denied the approval request</li><li>Submission not required: the study does not require human subjects review</li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_OversightInfo_IrbInfo_ApprovalNumber").focus(function () {
        $("#helpOversight").html("<b>Board Approval Number</b> *  (required only if status is \"Submitted, approved\")<br/><u>Definition:</u><br/>Number assigned by the human subjects review board upon approval of the protocol. May be ommitted if status is anything other than approved. If the human subjects review board does not assign numbers, please enter the date of approval in mm/dd/yyyy format.");
    });
    $("#StudyCollection_ClinicalSudy_OversightInfo_IrbInfo_Name").focus(function () {
        $("#helpOversight").html("<b>Board Name</b> *  (required only if status is \"Submitted, approved\" or \"Submitted, exempt\")<br/><u>Definition:</u><br/>Full name of the approving human subjects review board.<br/>Example: National Institutes of Health - NCI - IRB #1");
    });
    $("#StudyCollection_ClinicalSudy_OversightInfo_IrbInfo_Affiliation").focus(function () {
        $("#helpOversight").html("<b>Board Affiliation</b> *  (required only if status is \"Submitted, approved\" or \"Submitted, exempt\")<br/><u>Definition:</u><br/>Official name of organizational affiliation of the approving human subjects review board. (Limit: 255 characters) <br/>Example: US National Institutes of Health");
    });

    $("#StudyCollection_ClinicalSudy_OversightInfo_IrbInfo_Phone").focus(function () {
        $("#helpOversight").html("<b>Board Contact</b> * (required only if status is \"Submitted, approved\" or \"Submitted, exempt\")<br/><u>Definition:</u><br/> Contact information for the human subjects review board.<br/><ul><li>Phone (or Email required): * Use the format 123-456-7890 within the United States and Canada. Otherwise, provide the country code.</li></ul>Ext: Phone extension, if needed");
    });

    $("#StudyCollection_ClinicalSudy_OversightInfo_IrbInfo_Email").focus(function () {
        $("#helpOversight").html("<b>Board Contact</b> * (required only if status is \"Submitted, approved\" or \"Submitted, exempt\")<br/><u>Definition:</u><br/> Contact information for the human subjects review board.<br/><ul><li>Email (or Phone required): * Electronic mail address. </li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_OversightInfo_IrbInfo_FullAddress").focus(function () {
        $("#helpOversight").html("<b>Board Contact</b> * (required only if status is \"Submitted, approved\" or \"Submitted, exempt\")<br/><u>Definition:</u><br/> Contact information for the human subjects review board.<br/><ul><li>Address: Mailing address for the board, including street address, city, state or province, postal code, and country.</li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_OversightInfo_HasDmc").focus(function () {
        $("#helpOversight").html("<b>Data Monitoring Committee?</b><br/><u>Definition:</u><br/>Indicate whether a data monitoring committee has been appointed for this study. The data monitoring committee (board) is a group of independent scientists who are appointed to monitor the safety and scientific integrity of a human research intervention, and to make recommendations to the sponsor regarding the stopping of the trial for efficacy, for harms or for futility. The composition of the committee is dependent upon the scientific skills and knowledge required for monitoring the particular study.");
    });
    $("#StudyCollection_ClinicalSudy_OversightInfo_RegulatoryAuthority").focus(function () {
        $("#helpOversight").html("<b>Oversight Authorities * </b><br/><u>Definition:</u><br/>The name of each national or international health organization with authority over the protocol. Use the following format for each authority:<br />country: organization name<br />Examples:<br/>United States: Institutional Review Board<br/>United States: Food and Drug Administration<br/>Germany: Federal Institute for Drugs and Medical Devices<br/>Australia: Therapeutic Goods Administration<br/>");
    });
}

function RegisterCTSSummaryHelper() {
    $("#StudyCollection_ClinicalSudy_BriefSummary_TextBlock").focus(function () {
        $("#helpSummary").html("<b>Brief Summary</b> * FDAAA<br/><u>Definition:</u><br/> Short description of the protocol intended for the lay public. Include a brief statement of the study hypothesis. (Limit: 5000 characters)<br />Example: The purpose of this study is to determine whether prednisone, methotrexate, and cyclophosphamide are effective in the treatment of rapidly progressive hearing loss in both ears due to autoimmune inner ear disease (AIED).");
    });

    $("#StudyCollection_ClinicalSudy_DetailedDescription_TextBlock").focus(function () {
        $("#helpSummary").html("<b>Detailed Description</b><br/><u>Definition:</u><br/>Extended description of the protocol, including more technical information (as compared to the Brief Summary) if desired. Do not include the entire protocol; do not duplicate information recorded in other data elements, such as eligibility criteria or outcome measures. (Limit: 32,000 characters) <br />Example:<br/>Sudden out-of-hospital cardiac arrest (OOH-CA) remains a significant cause of death, in spite of recent declines in overall mortality from cardiovascular disease. Existing methods of emergency resuscitation are inadequate due to time delays inherent in the transport of a trained responder with defibrillation capabilities to the side of the OOH-CA victim. Existing Emergency Medical Services (EMS) systems typically combine paramedic Emergency Medical Technician (EMT) services with some level of community involvement, such as bystander cardiopulmonary resuscitation (CPR) training. Some communities include automated external defibrillators (AEDs) at isolated sites or in mobile police or fire vehicles. A comprehensive, integrated community approach to treatment with AEDs would have community units served by these volunteer non-medical responders who can quickly identify and treat a patient with OOH-CA. Such an approach is termed Public Access Defibrillation (PAD). <br/>");
    });
}

function RegisterCTSStatusHelper() {
    $("#StudyCollection_ClinicalSudy_OverallStatus").change(function () {
        checkStatus($("#StudyCollection_ClinicalSudy_OverallStatus option:selected").val());
    });
    $("#whyStoped").hide();

    $("#StudyCollection_ClinicalSudy_OverallStatus").focus(function () {
        $("#helpStatus").html("<b>Overall Recruitment Status </b> * FDAAA <i>[Required when Study Type is \"Interventional\" or \"Observational\".] </i><br/><u>Definition:</u><br/> Overall accrual activity for the protocol. Select one. <ul><li>Not yet recruiting: participants are not yet being recruited</li><li>Recruiting: participants are currently being recruited </li><li>Enrolling by invitation: participants are being (or will be) selected from a predetermined population </li><li>Active, not recruiting: study is ongoing (i.e., patients are being treated or examined), but participants are not currently being recruited or enrolled </li><li>Completed: the study has concluded normally; participants are no longer being examined or treated (i.e., last patient's last visit has occurred) </li><li>Suspended: recruiting or enrolling participants has halted prematurely but potentially will resume </li><li>Terminated: recruiting or enrolling participants has halted prematurely and will not resume; participants are no longer being examined or treated </li><li>Withdrawn: study halted prematurely, prior to enrollment of first participant </li></ul>");
    });
    $("#StudyCollection_ClinicalSudy_VerificationDate").focus(function () {
        $("#helpStatus").html("<b>Record Verification Date</b> * FDAAA <br/><u>Definition:</u><br/>Date the protocol information was last verified. Verification date is shown along with organization name on ClinicalTrials.gov to indicate to the public whether the information is being kept current, particularly recruiting status and contact information.<br/><b>Update verification date when reviewing the record for accuracy and completeness, even if no other changes are made.</b>");
    });
    $("#StudyCollection_ClinicalSudy_WhyStopped").focus(function () {
        $("#helpStatus").html("<b>Why Study Stopped? </b><br/><u>Definition:</u><br/>For suspended, terminated or withdrawn studies, provide a brief explanation of why the study has been halted or terminated. If desired, use brief summary or detailed description to provide additional information. (Limit: 160 characters) ");
    });
    $("#StudyCollection_ClinicalSudy_StartDate").focus(function () {
        $("#helpStatus").html("<b>Study Start Date</b> FDAAA <br/><u>Definition:</u><br/>Date that enrollment to the protocol begins.");
    });
    $("#StudyCollection_ClinicalSudy_PrimaryComplDate").focus(function () {
        $("#helpStatus").html("<b>Primary Completion Date</b> FDAAA <br/><u>Definition:</u><br/>As specified in US Public Law 110-85, Title VIII, Section 801, with respect to an applicable clinical trial, the date that the final subject was examined or received an intervention for the purposes of final collection of data for the primary outcome, whether the clinical trial concluded according to the pre-specified protocol or was terminated. A \"Type\" menu is also included, with options Anticipated and Actual. For active studies, set Type to Anticipated and specify the expected completion date, updating the date as needed over the course of the study. Upon study completion, change Type to Actual and update the date if necessary.");
    });

    $("#StudyCollection_ClinicalSudy_ExpandedAccessStatus").focus(function () {
        $("#helpStatus").html("<b>Expanded Access Status *</b><br/><u>Definition:</u><br/>Status indicating availability of an experimental drug or device outside any clinical trial protocol. This data element is only applicable for Expanded Access records (see Expanded Access under Study Type). Select one. <ul><li>Available: expanded access is currently available for this treatment. </li><li>No longer available: expanded access was available for this treatment previously but is not currently available and will not be available in the future. </li><li>Temporarily not available: expanded access is not currently available for this treatment, but is expected to be available in the future. </li><li>Approved for marketing: this treatment has been approved for sale to the public.</li></ul>");
    });
}

function RegisterCTSInterventionalDesignHelper() {
    $("#StudyCollection_ClinicalSudy_StudyDesign_InterventionalDesign_InterventionalSubtype").focus(function () {
        $("#helpIntervDesign").html("<b>Primary Purpose </b> FDAAA - reason for the protocol<br/><u>Definition:</u><br/><ul><li>Treatment: protocol designed to evaluate one or more interventions for treating a disease, syndrome or condition </li><li>Prevention: protocol designed to assess one or more interventions aimed at preventing the development of a specific disease or health condition </li><li>Diagnostic: protocol designed to evaluate one or more interventions aimed at identifying a disease or health condition </li><li>Supportive Care: protocol designed to evaluate one or more interventions where the primary intent is to maximize comfort, minimize side effects or mitigate against a decline in the subject's health or function. In general, supportive care interventions are not intended to cure a disease. </li><li>Screening: protocol designed to assess or examine methods of identifying a condition (or risk factors for a condition) in people who are not yet known to have the condition (or risk factor). </li><li>Health Services Research: protocol designed to evaluate the delivery, processes, management, organization or financing of health care. </li><li>Basic Science: protocol designed to examine the basic mechanism of action (e.g., physiology, biomechanics) of an intervention. </li><li>Other: describe in Detailed Description. </li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_StudyDesign_InterventionalDesign_Phase").focus(function () {
        $("#helpIntervDesign").html("<b>Study Phase *</b> FDAAA<br/><u>Definition:</u><br/>Phase of investigation, <a href='http://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/CFRSearch.cfm?fr=312.21' target='_search'> as defined by the US FDA</a> for trials involving investigational new drugs. Select only one." +
            "<ol><li><b>N/A</b>: for trials without phases</li><li>" +
            "<b>Phase 0</b>: exploratory trials, involving very limited human exposure, with no therapeutic or diagnostic intent (e.g., screening studies, microdose studies). See FDA guidance on exploratory IND studies for more information.</li><li>" +
            "<b>Phase 1</b>: includes initial studies to determine the metabolism and pharmacologic actions of drugs in humans, the side effects associated with increasing doses, and to gain early evidence of effectiveness; may include healthy participants and/or patients</li><li>" +
            "<b>Phase 1/Phase 2</b>: for trials that are a combination of phases 1 and 2</li><li>" +
            "<b>Phase 2</b>: includes controlled clinical studies conducted to evaluate the effectiveness of the drug for a particular indication or indications in patients with the disease or condition under study and to determine the common short-term side effects and risks</li><li>" +
            "<b>Phase 2/Phase 3</b>: for trials that are a combination of phases 2 and 3</li><li>" +
            "<b>Phase 3</b>: includes expanded controlled and uncontrolled trials after preliminary evidence suggesting effectiveness of the drug has been obtained, and are intended to gather additional information to evaluate the overall benefit-risk relationship of the drug and provide an adequate basis for physician labeling</li><li>" +
            "<b>Phase 4</b>: studies of FDA-approved drugs to delineate additional information including the drug's risks, benefits, and optimal use</li></ol>");
    });

    $("#StudyCollection_ClinicalSudy_StudyDesign_InterventionalDesign_Assignment").focus(function () {
        $("#helpIntervDesign").html("<b>Intervention Model </b><br/> (at least one of the following required: Intervention Model, Masking, Allocation. All may be required as part of Study Design under PL 110-85, Section 801) - intervention assignments<br/><u>Definition:</u><br/>" +
            "<ul><li>Single Group: single arm study</li><li>" +
            "Parallel: participants are assigned to one of two or more groups in parallel for the duration of the study</li><li>" +
            "Cross-over: participants receive one of two alternative interventions during the initial phase of the study and receive the other intervention during the second phase of the study</li><li>" +
            "Factorial: two or more interventions, each alone and in combination, are evaluated in parallel against a control group</li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_StudyDesign_InterventionalDesign_NumberOfArms").focus(function () {
        $("#helpIntervDesign").html("<b>Number of Arms </b> FDAAA<br/><u>Definition:</u><br/>Number of intervention groups (enter 1 for single-arm study).");
    });
    $("#StudyCollection_ClinicalSudy_StudyDesign_InterventionalDesign_Masking").focus(function () {
        $("#helpIntervDesign").html("<b>Masking</b> FDAAA<br /><u>Definition:</u><br/>(at least one of the following required: Intervention Model, Masking, Allocation. All may be required as part of Study Design under PL 110-85, Section 801) - knowledge of intervention assignments<br/><ul><li>" +
            "Open: no masking is used. All involved know the identity of the intervention assignment. </li><li>" +
            "Single Blind: one party, either the investigator or participant, is unaware of the intervention assignment; also called single-masked study. </li><li>" +
            "Double Blind: two or more parties are unaware of the intervention assignment </li></ul>" +
            "<br/>If Single Blind or Double Blind is selected, check the role(s) that are to be masked: Subject, Caregiver, Investigator or Outcomes Assessor");
    });
    $("#StudyCollection_ClinicalSudy_StudyDesign_InterventionalDesign_Allocation").focus(function () {
        $("#helpIntervDesign").html("<b>Allocation</b> FDAAA<br/><u>Definition:</u><br/> (at least one of the following required: Intervention Model, Masking, Allocation. All may be required as part of Study Design under PL 110-85, Section 801) - participant assignment to intervention group<ul><li>" +
            "N/A: single arm study</li><li>Randomized Controlled Trial: participants are assigned to intervention groups by chance</li><li>Nonrandomized Trial: participants are expressly assigned to intervention groups through a non-random method, such as physician choice</li></ul>");
    });
    $("#StudyCollection_ClinicalSudy_StudyDesign_InterventionalDesign_Control").focus(function () {
        $("#helpIntervDesign").html("<b>Control</b> FDAAA<br /><u>Definition:</u><br/>");
    });
    $("#StudyCollection_ClinicalSudy_StudyDesign_InterventionalDesign_Endpoint").focus(function () {
        $("#helpIntervDesign").html("<b>Endpoint</b><br/><u>Definition:</u><br/>(formerly Endpoint) - type of primary outcome or endpoint that the protocol is designed to evaluate. Select one.<ul><li>" +
            "N/A: not applicable </li><li>" +
            "Safety: show if the drug is safe under conditions of proposed use </li><li>" +
            "Efficacy: measure of an intervention's influence on a disease or health condition </li><li>" +
            "Safety/Efficacy </li><li>" +
            "Bio-equivalence: scientific basis for comparing generic and brand name drugs </li><li>" +
            "Bio-availability: rate and extent to which a drug is absorbed or otherwise available to the treatment site in the body </li><li>" +
            "Pharmacokinetics: the action of a drug in the body over a period of time including the process of absorption, distribution and localization in tissue, biotransformation, and excretion of the compound </li><li>" +
            "Pharmacodynamics: action of drugs in living systems </li><li>" +
            "Pharmacokinetics/dynamics </li></ul>");
    });
    $("#StudyCollection_ClinicalSudy_Enrollment").focus(function () {
        $("#helpIntervDesign").html("<b>Enrollment</b> (Target or Actual Number of Subjects) FDAAA<br /><u>Definition:</u><br/>Number of subjects in the trial. A \"Type\" menu is also included, with options Anticipated and Actual. For active studies, set Type to Anticipated and specify the expected enrollment, updating the number as needed over the course of the study. Upon study completion, change Type to Actual and update the enrollment if necessary.");
    });
}

function RegisterCTSObservationalStudyHelper() {
    $("#StudyCollection_ClinicalSudy_StudyDesign_ObservationalDesign_ObservationalStudyDesign").focus(function () {
        $("#helpObserv").html("<b>Observational Study Model * </b> - primary strategy for subject identification and follow-up. Select one.<br/><u>Definition:</u><br/><ul><li>Cohort: group of individuals, initially defined and composed, with common characteristics (e.g., condition, birth year), who are examined or traced over a given time period</li><li>" +
            "Case-control: group of individuals with specific characteristics (e.g., conditions or exposures) compared to group(s) with different characteristics, but otherwise similar </li><li>" +
            "Case-only: single group of individuals with specific characteristics </li><li>" +
            "Case-crossover: characteristics of case immediately prior to disease onset (sometimes called the hazard period) compared to characteristics of same case at a prior time (i.e., control period) </li><li>" +
            "Ecologic or community studies: geographically defined populations, such as countries or regions within a country, compared on a variety of environmental (e.g., air pollution intensity, hours of sunlight) and/or global measures not reducible to individual level characteristics (e.g., health care system, laws or policies median income, average fat intake, disease rate) </li><li>" +
            "Family-based: studies conducted among family members, such as genetic studies within families or twin studies and studies of family environment </li><li>" +
            "Other - explain in Detailed Description </li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_StudyDesign_ObservationalDesign_Timing").focus(function () {
        $("#helpObserv").html("<b>Time Perspective *</b> - temporal relationship of observation period to time of subject enrollment. Select one.<br/><u>Definition:</u><br/><ul><li>Prospective: look forward using periodic observations collected predominantly following subject enrollment </li><li>" +
            "Retrospective: look back using observations collected predominantly prior to subject selection and enrollment </li><li>" +
            "Cross-sectional: observations or measurements made at a single point in time, usually at subject enrollment </li><li>" +
            "Other - explain in Detailed Description</li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_StudyDesign_ObservationalDesign_BiospecimenRetention").focus(function () {
        $("#helpObserv").html("<b>Biospecimen Retention</b>  select one<br/><u>Definition:</u><br/><ul><li>None Retained - no samples retained </li><li>" +
            "Samples With DNA - samples retained, with potential for extraction of DNA from at least one of the types of samples retained (e.g., frozen tissue, whole blood) </li><li>" +
            "Samples Without DNA - samples retained, with no potential for DNA extraction from any retained samples (e.g., fixed tissue, plasma)</li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_StudyDesign_ObservationalDesign_BiospecimenDescription_TextBlock").focus(function () {
        $("#helpObserv").html("<b>Biospecimen Description</b> <br/><u>Definition:</u><br/>Specify all types of biospecimens to be retained (e.g., whole blood, serum, white cells, urine, tissue). (Limit: 1000 characters) ");
    });

    $("#StudyCollection_ClinicalSudy_StudyDesign_ObservationalDesign_NumberOfGroups").focus(function () {
        $("#helpObserv").html("<b>Number of Groups/Cohorts *</b> <br/><u>Definition:</u><br/>Number of study groups/cohorts. Enter 1 for a single-group study. Many observational studies have one group/cohort; case control studies typically have two.");
    });
}

function RegisterCTSOutcomeHelp() {
    var shared = "<b>Primary Outcome Measure </b> FDAAA <br/><u>Definition:</u><br/>Specific key measurement(s) or observation(s) used to measure the effect of experimental variables in a study, or for observational studies, to describe patterns of diseases or traits or associations with exposures, risk factors or treatment.<ul><li>";

    $("#StudyCollection_ClinicalSudy_PrimaryOutcome_OutcomeMeasure").focus(function () {
        $("#helpOutcome").html(shared + "<b>Title *</b> - A concise name for the specific measure that will be used to determine the effect of the intervention(s) or, for observational studies, related to core objectives of the study and receiving the most emphasis in assessment. (Limit: 254 characters)</li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_PrimaryOutcome_OutcomeTimeFrame").focus(function () {
        $("#helpOutcome").html(shared + "<b>Time Frame (FDAAA)</b> - Time point(s) at which outcome measure is assessed. (Limit: 254 characters)</li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_PrimaryOutcome_OutcomeDescription_TextBlock").focus(function () {
        $("#helpOutcome").html(shared + "<b>Description </b> - Additional information about the outcome measure, if needed for clarification. (Limit: 600 characters) </li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_PrimaryOutcome_IsOutcomeSafetyIssue").focus(function () {
        $("#helpOutcome").html(shared + "<b>Safety Issue? (FDAAA)</b> - Is this outcome measure assessing a safety issue? Select: Yes/No </li></ul>");
    });
}

function RegisterCTSConditionHelp() {
    $("#StudyCollection_ClinicalSudy_Condition").focus(function () {
        $("#helpCondition").html("<b>Conditions or Focus of Study * </b>FDAAA  <br/><u>Definition:</u><br/>Primary disease or condition being studied, or focus of the study. Diseases or conditions should use the National Library of Medicine's Medical Subject Headings (MeSH) controlled vocabulary when possible.");
    });
    $("#StudyCollection_ClinicalSudy_Keyword").focus(function () {
        $("#helpCondition").html("<b>Keywords</b> <br/><u>Definition:</u><br/>Words or phrases that best describe the protocol. Keywords help users find studies in the database. Use NLM's Medical Subject Heading (MeSH) controlled vocabulary terms where appropriate. Be as specific and precise as possible. Avoid acronyms and abbreviations.");
    });
}

function RegisterCTSInterventionHelp() {
    $("#StudyCollection_ClinicalSudy_Intervention_InterventionType").focus(function () {
        $("#helpIntervention").html("<b>Intervention Type *</b> FDAAA - select one per intervention <br/><u>Definition:</u><br/><ul><li>Drug (including placebo)</li><li>Device (including sham) </li><li>Biological/Vaccine </li><li>Procedure/Surgery </li><li>Radiation </li><li>Behavioral (e.g., Psychotherapy, Lifestyle Counseling) </li><li>Genetic (including gene transfer, stem cell and recombinant DNA) </li><li>Dietary Supplement (e.g., vitamins, minerals) </li><li>Other</li></ul>");
    });
    $("#StudyCollection_ClinicalSudy_Intervention_InterventionName").focus(function () {
        $("#helpIntervention").html("<b>Intervention Name *</b> FDAAA - for drugs use generic name; for other types of interventions provide a brief descriptive name. (Limit: 160 characters) <br/><u>Definition:</u><br/><p>For investigational new drugs that do not yet have a generic name, a chemical name, company code or serial number may be used on a temporary basis. As soon as the generic name has been established, update the associated protocol records accordingly. </p><p>For non-drug intervention types, provide an intervention name with sufficient detail so that it can be distinguished from other similar interventions.</p>");
    });
    $("#StudyCollection_ClinicalSudy_Intervention_InterventionDescription_TextBlock").focus(function () {
        $("#helpIntervention").html("<b>Intervention Description</b> (FDAAA) - cover key details of the intervention. <br/><u>Definition:</u><br/>Must be sufficiently detailed to distinguish between arms of a study (e.g., comparison of different dosages of drug) and/or among similar interventions (e.g., comparison of multiple implantable cardiac defibrillators). For example, interventions involving drugs may include dosage form, dosage, frequency and duration. (Limit: 1000 characters) <br/>Example: <ul>50 mg/m2, IV (in the vein) on day 5 of each 28 day cycle. Number of Cycles: until progression or unacceptable toxicity develops</ul>");
    });
    $("#StudyCollection_ClinicalSudy_Intervention_InterventionOtherName").focus(function () {
        $("#helpIntervention").html("<b>Other Names </b> <br/><u>Definition:</u><br/>- list other names used to identify the intervention, past or present (e.g., brand name for a drug). These names will be used to improve search results in ClinicalTrials.gov. (Limit: 160 characters per name) ");
    });
    $("#StudyCollection_ClinicalSudy_ArmGroup_ArmGroupLabel").focus(function () {
        $("#helpIntervention").html("<b>Arm Label *</b> (FDAAA) <br/><u>Definition:</u><br/>- the short name used to identify the arm. (Limit: 62 characters) ");
    });
    $("#StudyCollection_ClinicalSudy_ArmGroup_ArmType").focus(function () {
        $("#helpIntervention").html("<b>Arm Type *</b>(FDAAA) <br/><u>Definition:</u><br/> - select one <ul><li>Experimental </li><li>Active Comparator </li><li>Placebo Comparator </li><li>Sham Comparator</li><li>No intervention </li><li>Other</li></ul>");
    });
    $("#StudyCollection_ClinicalSudy_ArmGroup_ArmTypeDescription_TextBlock").focus(function () {
        $("#helpIntervention").html("<b>Arm Description </b> (FDAAA)<br/><u>Definition:</u><br/>- brief description of the arm. This element may not be necessary if the associated intervention descriptions contain sufficient information to describe the arm. (Limit: 999 characters)");
    });
}

function RegisterCTSEligibilityHelp() {
    $("#StudyCollection_ClinicalSudy_Eligibility_StudyPopulation_TextBlock").focus(function () {
        $("#helpEligibility").html("<b>Study Population Description *</b><br/><u>Definition:</u><br/> For observational studies only, a description of the population from which the groups or cohorts will be selected (e.g., primary care clinic, community sample, residents of a certain town). (Limit: 1000 characters)");
    });
    $("#StudyCollection_ClinicalSudy_Eligibility_SamplingMethod").focus(function () {
        $("#helpEligibility").html("<b>Sampling Method *</b> - For observational studies only, select one and explain in Detailed Description.<br/><u>Definition:</u><br/><ul><li>Probability Sample: exclusively random process to guarantee that each participant or population has specified chance of selection, such as simple random sampling, systematic sampling, stratified random sampling, cluster sampling, and consecutive patient sampling</li><li>Non-Probability Sample: any of a variety of other sampling processes, such as convenience sampling or invitation to volunteer</li></ul>");
    });
    $("#StudyCollection_ClinicalSudy_Eligibility_Criteria_TextBlock").focus(function () {
        $("#helpEligibility").html("<b>Eligibility Criteria *</b> FDAAA <br/><u>Definition:</u><br/> Summary criteria for participant selection. The preferred format includes lists of inclusion and exclusion criteria as shown below. (Limit: 15,000 characters) <br/>Example:<br/><br/>Inclusion Criteria: <br/>- Clinical diagnosis of Alzheimer's Disease<br/>- Must be able to swallow tablets<br/><br/>Exclusion Criteria:<br/>- Insulin dependent diabetes<br/>- Thyroid disease");
    });
    $("#StudyCollection_ClinicalSudy_Eligibility_Gender").focus(function () {
        $("#helpEligibility").html("<b>Gender *</b> FDAAA <br/><u>Definition:</u><br/>Physical gender of individuals who may participate in the protocol. Select one.<ul><li>Both: both female and male participants are being studied</li><li>Female: only female participants are being studied</li><li>Male: only male participants are being studied</li></ul>");
    });
    $("#StudyCollection_ClinicalSudy_Eligibility_MinimumAgeStr").focus(function () {
        $("#helpEligibility").html("<b>Minimum Age *</b> FDAAA <br/><u>Definition:</u><br/>Minimum age of participants. Provide a number and select a unit of time (years, months, weeks, days, hours or minutes). Select \"N/A (No limit)\" if no minimum age is indicated.");
    });
    $("#StudyCollection_ClinicalSudy_Eligibility_MaximumAgeStr").focus(function () {
        $("#helpEligibility").html("<b>Maximum Age *</b> FDAAA <br/><u>Definition:</u><br/>Maximum age of participants. Provide a number and a unit of time (years, months, weeks, days, hours or minutes). Select \"N/A (No limit)\" if no maximum age is indicated.");
    });
    $("#StudyCollection_ClinicalSudy_Eligibility_IsHealthyVolunteers").focus(function () {
        $("#helpEligibility").html("<b>Accepts Healthy Volunteers?</b> FDAAA <br/><u>Definition:</u><br/>Indicate if persons who have not had the condition(s) being studied or otherwise related conditions or symptoms, as specified in the eligibility requirements, may participate in the study. Select Yes/No.");
    });
}
function RegisterCTSLocationContactHelp() {
    $("#StudyCollection_ClinicalSudy_Location_Facility_Name").focus(function () {
        $("#helpLocationContact").html("<b>Name</b> * (FDAAA) <br/><u>Definition:</u><br/>Full name of the organization where the protocol is being conducted. (Limit: 254 characters) <br/>Examples: <br/>UCLA Eye Institute; Springfield Memorial Hospital");
    });
    $("#StudyCollection_ClinicalSudy_Location_Facility_Address_City").focus(function () {
        $("#helpLocationContact").html("<b>City</b> * (FDAAA)<br/><u>Definition:</u><br/>");
    });
    $("#StudyCollection_ClinicalSudy_Location_Facility_Address_State").focus(function () {
        $("#helpLocationContact").html("<b>State/Province</b> * (FDAAA)<br/><u>Definition:</u><br/>");
    });
    $("#StudyCollection_ClinicalSudy_Location_Facility_Address_Zip").focus(function () {
        $("#helpLocationContact").html("<b>Postal Code</b><br/><u>Definition:</u><br/>");
    });
    $("#StudyCollection_ClinicalSudy_Location_Facility_Address_Country").focus(function () {
        $("#helpLocationContact").html("<b>Country</b> * (FDAAA)<br/><u>Definition:</u><br/>");
    });
    $("#StudyCollection_ClinicalSudy_Location_RecruitmentStatus").focus(function () {
        $("#helpLocationContact").html("<b>Recruitment Status</b> * FDAAA<br/><u>Definition:</u><br/>- protocol accrual activity at a facility. Select one.<ul><li>Not yet recruiting: participants are not yet being recruited</li><li>" +
        "Recruiting: participants are currently being recruited</li><li>" +
        "Enrolling by invitation: participants are being (or will be) selected from a predetermined population</li><li>" +
        "Active, not recruiting: study is ongoing (i.e., patients are being treated or examined), but participants are not currently being recruited or enrolled</li><li>" +
        "Completed: the study has concluded normally; participants are no longer being examined or treated (i.e., last patient's last visit has occurred)</li><li>" +
        "Suspended: recruiting or enrolling participants has halted prematurely but potentially will resume</li><li>" +
        "Terminated: recruiting or enrolling participants has halted prematurely and will not resume; participants are no longer being examined or treated</li><li>" +
        "Withdrawn: study halted prematurely, prior to enrollment of first participant</li></ul>");
    });

    $("#StudyCollection_ClinicalSudy_Location_Contact_FirstName").focus(function () {
        $("#helpLocationContact").html("<b>Facility Contact First Name</b> * (FDAAA)<br/><u>Definition:</u><br/>or Central Contact required");
    });
    $("#StudyCollection_ClinicalSudy_Location_Contact_MiddleName").focus(function () {
        $("#helpLocationContact").html("<b>Middle Initial</b><br/><u>Definition:</u><br/>");
    });
    $("#StudyCollection_ClinicalSudy_Location_Contact_LastName").focus(function () {
        $("#helpLocationContact").html("<b>Last Name</b> * (FDAAA)<br/><u>Definition:</u><br/>");
    });
    $("#StudyCollection_ClinicalSudy_Location_Contact_Degrees").focus(function () {
        $("#helpLocationContact").html("<b>Degree</b><br/><u>Definition:</u><br/>");
    });
    $("#StudyCollection_ClinicalSudy_Location_Contact_Phone").focus(function () {
        $("#helpLocationContact").html("<b>Phone </b>* (FDAAA)<br/><u>Definition:</u><br/>(or Email required) office phone of the facility contact person. Use the format 123-456-7890 within the United States and Canada. Otherwise, provide the country code.");
    });
    $("#StudyCollection_ClinicalSudy_Location_Contact_PhoneExt").focus(function () {
        $("#helpLocationContact").html("<b>Ext</b><br/><u>Definition:</u><br/> phone extension, if needed");
    });
    $("#StudyCollection_ClinicalSudy_Location_Contact_Email").focus(function () {
        $("#helpLocationContact").html("<b>Email </b>* (FDAAA)<br/><u>Definition:</u><br/> (or Phone required) electronic mail address of the facility contact person");
    });
}

function RegisterCTSInvestigatorHelp() {
    $("#StudyCollection_ClinicalSudy_OverallOfficial_FirstName").focus(function () {
        $("#helpInvestigator").html("<b>First Name</b><br/><u>Definition:</u><br/>Overall Study Officials<br/> Person(s) responsible for the overall scientific leadership of the protocol, including study principal investigator.");
    });

    $("#StudyCollection_ClinicalSudy_OverallOfficial_LastName").focus(function () {
        $("#helpInvestigator").html("<b>Last Name</b><br/><u>Definition:</u><br/>Overall Study Officials<br/> Person(s) responsible for the overall scientific leadership of the protocol, including study principal investigator.");
    });

    $("#StudyCollection_ClinicalSudy_OverallOfficial_Degrees").focus(function () {
        $("#helpInvestigator").html("<b>Degree</b><br/><u>Definition:</u><br/>Overall Study Officials<br/> Person(s) responsible for the overall scientific leadership of the protocol, including study principal investigator.");
    });

    $("#StudyCollection_ClinicalSudy_OverallOfficial_Role").focus(function () {
        $("#helpInvestigator").html("<b>Official's Role</b><br/><u>Definition:</u><br/>Position or function of the official. Select one (Study Chair/Study Director/Study Principal Investigator).");
    });

    $("#StudyCollection_ClinicalSudy_OverallOfficial_Affiliation").focus(function () {
        $("#helpInvestigator").html("<b>Organizational Affiliation</b><br/><u>Definition:</u><br/>Full name of the official's organization. If none, specify Unaffiliated.");
    });

    $("#StudyCollection_ClinicalSudy_Investigator_FirstName").focus(function () {
        $("#helpInvestigator").html("<b>First Name</b><br/><u>Definition:</u><br/>");
    });

    $("#StudyCollection_ClinicalSudy_Investigator_LastName").focus(function () {
        $("#helpInvestigator").html("<b>Last Name</b><br/><u>Definition:</u><br/>");
    });

    $("#StudyCollection_ClinicalSudy_Investigator_Degrees").focus(function () {
        $("#helpInvestigator").html("<b>Degree</b><br/><u>Definition:</u><br/>");
    });

    $("#StudyCollection_ClinicalSudy_Investigator_Role").focus(function () {
        $("#helpInvestigator").html("<b>Official's Role</b><br/><u>Definition:</u><br/>Site Principal Investigator or Site Sub-Investigator (pick one)");
    });
}

function RegisterCTSReferencesHelp() {
    $("#StudyCollection_ClinicalSudy_Reference_PmId").focus(function () {
        $("#helpReferencesr").html("<b>MEDLINE Identifier</b><br/><u>Definition:</u><br/>unique PubMed Identifier (PMID) for the citation in MEDLINE<br/><br/>Example: PMID: 10987815");
    });
    $("#StudyCollection_ClinicalSudy_Reference_Citation").focus(function () {
        $("#helpReferencesr").html("<b>Citation</b><br/><u>Definition:</u><br/>bibliographic reference in NLM's MEDLINE format (Limit: 2000 characters) <br/><br/>Example: Barza M; Pavan PR; Doft BH; Wisniewski SR; Wilson LA; Han DP; Kelsey SF. Evaluation of microbiological diagnostic techniques in postoperative endophthalmitis in the Endophthalmitis Vitrectomy Study. Arch Ophthalmol 1997 Sep;115(9):1142-50");
    });
    $("#StudyCollection_ClinicalSudy_Link_Url").focus(function () {
        $("#helpReferencesr").html("<b>URL</b><br/><u>Definition:</u><br/>complete URL, including http:// (Limit: 254 characters) <br/><br/>Example: http://www.alzheimers.org/");
    });
    $("#StudyCollection_ClinicalSudy_Link_Description").focus(function () {
        $("#helpReferencesr").html("<b>Description</b><br/><u>Definition:</u><br/> title or brief description of the linked page. If the page being linked is the protocol's home page on the sponsor's Web site, include the words \"Click here for more information about this study:\" and provide the name of the protocol. (Limit: 254 characters) <br/><br/>Examples:<br/>Click here for more information about this study: Clinical Trial of Eye Prophylaxis in the Newborn<br/><br/>The Alzheimer's Disease Education and Referral (ADEAR) Center is a service of the National Institute on Aging");
    });
}